Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVRO-3787: [Rust] Deserialization fails to use default if an enum in a record in a union is given an unknown symbol #2333

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

martin-g
Copy link
Member

AVRO-3787

Do not fail the validation if the provided enum symbol is not in the list of available ones if there schema defines a default symbol

What is the purpose of the change

  • Improve the behavior when doing schema validation with an Enum that has a default value

Verifying this change

  • The tests from the JIRA ticket have been added to the test suite

Documentation

  • Does this pull request introduce a new feature? no

@github-actions github-actions bot added the Rust label Jul 10, 2023
…a record in a union is given an unknown symbol

Do not fail the validation if the provided enum symbol is not in the
list of available ones if there schema defines a default symbol

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
@martin-g martin-g merged commit 5e592a3 into master Jul 10, 2023
14 checks passed
@martin-g martin-g deleted the avro-3787-enum-validation branch July 10, 2023 12:55
martin-g added a commit that referenced this pull request Jul 10, 2023
…a record in a union is given an unknown symbol (#2333)

Do not fail the validation if the provided enum symbol is not in the
list of available ones if there schema defines a default symbol

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
(cherry picked from commit 5e592a3)
RanbirK pushed a commit to RanbirK/avro that referenced this pull request May 13, 2024
…a record in a union is given an unknown symbol (apache#2333)

Do not fail the validation if the provided enum symbol is not in the
list of available ones if there schema defines a default symbol

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant